package homework02;

import java.util.Scanner;

public class one{	
	public static void main(String args[]){
		Scanner input = new Scanner(System.in);
		
		
		while (true) {
			StringBuilder sB = new StringBuilder();
			int n = input.nextInt();
			
			for (int i = 0; i <  n; i++) {
				sB.append(i);
			}
			int x = input.nextInt();
			int y = input.nextInt();
			System.out.println(sB.substring(x, y));
		}
		
	}
}

